<?php


namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;

class BaseController extends Controller
{
	public $response = [
		'data' => [],
	];

	public function successResponse($data)
	{
		$this->response['data'] = $data;
		return $this->response;
	}

	public function errorResponse($data)
	{
		$this->response['data'] = $data;
		return $this->response;
	}
}